<template>
  <div class="shop" >
    <img :src="item.imgUrl" alt="" class="shop__img" />
    <div :class="['shop__content', hideborder ? '' : 'shop__content--border']">
      <div class="shop__content__title">{{ item.name }}</div>
      <div class="shop__content__tags">
        <span class="shop__content__tag">月售：{{ item.sales }}</span>
        <span class="shop__content__tag"
          >起送：{{ item.expressLimit }}元</span
        >
        <span class="shop__content__tag"
          >运费：{{ item.expressPrice }}元</span
        >
      </div>
      <P class="shop__content__highlight">{{ item.slogan }}</P>
    </div>
  </div>
</template>
<script>

export default ({
  props: {
    item: {
      type: Object,
      default: () => {
        return {}
      }
    },
    hideborder: {
      type: Boolean,
      default: false
    }
  },
  setup () {
  }
})
</script>

<style lang="scss" scoped>
@import '../style/viriable.scss';
.shop {
    display: flex;
    padding-top: .12rem;
    &__img {
      width: .56rem;
      height: .56rem;
      margin-right: .16rem;
    }
    &__content {
        flex: 1;
        padding-bottom: .12rem;
        &--border {
            border-bottom: solid #F1F1F1 1px;
        }
        &__title {
        line-height: .22rem;
        font-size: .16rem;
        color: $content-fontcolor;
        }
        &__tags {
        margin-top: .08rem;
        line-height: .18rem;
        font-size: .13rem;
        color: $content-fontcolor;
        .shop__content__tag {
            margin-right: .16rem;
        }
        }
        &__highlight {
        line-height: .18rem;
        font-size: .13rem;
        color: $light-fontcolor;
        margin: .08rem 0 0 0;
        }
    }
}
</style>
